#pragma once

class CSourceImage
{
public:
	DWORD m_dSize;                                                 
	BYTE* m_pDib;                                 
	BITMAPINFO* m_pBitmapInfo;
	BITMAPINFOHEADER* m_pBitmapInfoHeader;
	BITMAPFILEHEADER m_BitmapFileHeader;
	BOOL m_valid;
	UINT m_numberOfColors;
	BYTE* m_pData;
	RGBQUAD* m_pRGB;
	CPalette* m_hPalette;
	HBITMAP hBitmap;
	char m_FileName[256];
public:
	CSourceImage(void);
	~CSourceImage(void);

	BYTE* GetData(void);
	BOOL IsValid(void);
	char* GetFileName(void);
	BOOL CreateHBitmap(void);
	UINT GetWidth(void);
	UINT GetHeight(void);
	DWORD GetSize(void);
	UINT GetNumberofColors(void);
	
	void LoadFile(const char* DibFileName);
};
